///
/// author: 吴祖清
/// date：2020/12/18 10:37
/// description: rpc的基类
///
import 'dart:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

class RPCInput extends $pb.GeneratedMessage {
  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RPCInput',
      package: const $pb.PackageName(
          const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'mars_pb'),
      createEmptyInstance: create)
    ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'obj')
    ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'func')
    ..a<$core.List<$core.int>>(
        3,
        const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'req',
        $pb.PbFieldType.OY)
    ..m<$core.String, $core.String>(
        4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'opt',
        entryClassName: 'RPCInput.OptEntry',
        keyFieldType: $pb.PbFieldType.OS,
        valueFieldType: $pb.PbFieldType.OS,
        packageName: const $pb.PackageName('mars_pb'))
    ..hasRequiredFields = false;

  RPCInput._() : super();

  factory RPCInput() => create();

  factory RPCInput.fromBuffer($core.List<$core.int> i,
          [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(i, r);

  factory RPCInput.fromJson($core.String i,
          [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(i, r);

  @$core.Deprecated('Using this can add significant overhead to your binary. '
      'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
      'Will be removed in next major version')
  RPCInput clone() => RPCInput()..mergeFromMessage(this);

  @$core.Deprecated('Using this can add significant overhead to your binary. '
      'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
      'Will be removed in next major version')
  RPCInput copyWith(void Function(RPCInput) updates) =>
      super.copyWith((message) => updates(message as RPCInput)); // ignore: deprecated_member_use
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static RPCInput create() => RPCInput._();

  RPCInput createEmptyInstance() => create();

  static $pb.PbList<RPCInput> createRepeated() => $pb.PbList<RPCInput>();

  @$core.pragma('dart2js:noInline')
  static RPCInput getDefault() =>
      _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RPCInput>(create);
  static RPCInput _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get obj => $_getSZ(0);

  @$pb.TagNumber(1)
  set obj($core.String v) {
    $_setString(0, v);
  }

  @$pb.TagNumber(1)
  $core.bool hasObj() => $_has(0);

  @$pb.TagNumber(1)
  void clearObj() => clearField(1);

  @$pb.TagNumber(2)
  $core.String get func => $_getSZ(1);

  @$pb.TagNumber(2)
  set func($core.String v) {
    $_setString(1, v);
  }

  @$pb.TagNumber(2)
  $core.bool hasFunc() => $_has(1);

  @$pb.TagNumber(2)
  void clearFunc() => clearField(2);

  @$pb.TagNumber(3)
  $core.List<$core.int> get req => $_getN(2);

  @$pb.TagNumber(3)
  set req($core.List<$core.int> v) {
    $_setBytes(2, v);
  }

  @$pb.TagNumber(3)
  $core.bool hasReq() => $_has(2);

  @$pb.TagNumber(3)
  void clearReq() => clearField(3);

  @$pb.TagNumber(4)
  $core.Map<$core.String, $core.String> get opt => $_getMap(3);
}

class RPCOutput extends $pb.GeneratedMessage {
  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RPCOutput',
      package: const $pb.PackageName(
          const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'mars_pb'),
      createEmptyInstance: create)
    ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ret',
        $pb.PbFieldType.O3)
    ..a<$core.List<$core.int>>(
        2,
        const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rsp',
        $pb.PbFieldType.OY)
    ..m<$core.String, $core.String>(
        3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'opt',
        entryClassName: 'RPCOutput.OptEntry',
        keyFieldType: $pb.PbFieldType.OS,
        valueFieldType: $pb.PbFieldType.OS,
        packageName: const $pb.PackageName('mars_pb'))
    ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'desc')
    ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'obj')
    ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'func')
    ..hasRequiredFields = false;

  RPCOutput._() : super();

  factory RPCOutput() => create();

  factory RPCOutput.fromBuffer($core.List<$core.int> i,
          [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(i, r);

  factory RPCOutput.fromJson($core.String i,
          [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(i, r);

  @$core.Deprecated('Using this can add significant overhead to your binary. '
      'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
      'Will be removed in next major version')
  RPCOutput clone() => RPCOutput()..mergeFromMessage(this);

  @$core.Deprecated('Using this can add significant overhead to your binary. '
      'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
      'Will be removed in next major version')
  RPCOutput copyWith(void Function(RPCOutput) updates) =>
      super.copyWith((message) => updates(message as RPCOutput)); // ignore: deprecated_member_use
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static RPCOutput create() => RPCOutput._();

  RPCOutput createEmptyInstance() => create();

  static $pb.PbList<RPCOutput> createRepeated() => $pb.PbList<RPCOutput>();

  @$core.pragma('dart2js:noInline')
  static RPCOutput getDefault() =>
      _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RPCOutput>(create);
  static RPCOutput _defaultInstance;

  @$pb.TagNumber(1)
  $core.int get ret => $_getIZ(0);

  @$pb.TagNumber(1)
  set ret($core.int v) {
    $_setSignedInt32(0, v);
  }

  @$pb.TagNumber(1)
  $core.bool hasRet() => $_has(0);

  @$pb.TagNumber(1)
  void clearRet() => clearField(1);

  @$pb.TagNumber(2)
  $core.List<$core.int> get rsp => $_getN(1);

  @$pb.TagNumber(2)
  set rsp($core.List<$core.int> v) {
    $_setBytes(1, v);
  }

  @$pb.TagNumber(2)
  $core.bool hasRsp() => $_has(1);

  @$pb.TagNumber(2)
  void clearRsp() => clearField(2);

  @$pb.TagNumber(3)
  $core.Map<$core.String, $core.String> get opt => $_getMap(2);

  @$pb.TagNumber(4)
  $core.String get desc => $_getSZ(3);

  @$pb.TagNumber(4)
  set desc($core.String v) {
    $_setString(3, v);
  }

  @$pb.TagNumber(4)
  $core.bool hasDesc() => $_has(3);

  @$pb.TagNumber(4)
  void clearDesc() => clearField(4);

  @$pb.TagNumber(5)
  $core.String get obj => $_getSZ(4);

  @$pb.TagNumber(5)
  set obj($core.String v) {
    $_setString(4, v);
  }

  @$pb.TagNumber(5)
  $core.bool hasObj() => $_has(4);

  @$pb.TagNumber(5)
  void clearObj() => clearField(5);

  @$pb.TagNumber(6)
  $core.String get func => $_getSZ(5);

  @$pb.TagNumber(6)
  set func($core.String v) {
    $_setString(5, v);
  }

  @$pb.TagNumber(6)
  $core.bool hasFunc() => $_has(5);

  @$pb.TagNumber(6)
  void clearFunc() => clearField(6);
}
